//package com.imooc.pan.server.common.mq.config;
//
//import org.springframework.amqp.core.Binding;
//import org.springframework.amqp.core.BindingBuilder;
//import org.springframework.amqp.core.Queue;
//import org.springframework.amqp.core.TopicExchange;
//import org.springframework.boot.SpringBootConfiguration;
//import org.springframework.context.annotation.Bean;
//
///**
// *
// */
////@SpringBootConfiguration
//public class RabbitMQConfig {
//    // error_log
//    public static final String ERROR_LOG_QUEUE = "error_log_queue";
//    public static final String ERROR_LOG_EXCHANGE = "error_log_exchange";
//    public static final String ERROR_LOG_ROUTING_KEY = "errorLog.#";
//
//    // delete_file
//    public static final String DELETE_FILE_QUEUE = "delete_file_queue";
//    public static final String DELETE_FILE_EXCHANGE = "delete_file_exchange";
//    public static final String DELETE_FILE_ROUTING_KEY = "deleteFile.#";
//
//    public static final String RESTORE_FILE_QUEUE = "restore_file_queue";
//
//    public static final String RESTORE_FILE_EXCHANGE = "restore_file_exchange";
//
//    public static final String RESTORE_FILE_ROUTING_KEY = "restoreFile.#";
//
//
//    // physical_delete_file
//    public static final String PHYSICAL_DELETE_FILE_QUEUE = "physical_delete_file_queue";
//    public static final String PHYSICAL_DELETE_FILE_EXCHANGE = "physical_delete_file_exchange";
//    public static final String PHYSICAL_DELETE_FILE_ROUTING_KEY = "physicalDeleteFile.#";
//
//    // user_search
//    public static final String USER_SEARCH_QUEUE = "user_search_queue";
//    public static final String USER_SEARCH_EXCHANGE = "user_search_exchange";
//    public static final String USER_SEARCH_ROUTING_KEY = "userSearch.#";
//
//    @Bean
//    public Queue errorLogQueue() {
//        return new Queue(ERROR_LOG_QUEUE);
//    }
//
//    @Bean
//    public TopicExchange errorLogExchange() {
//        return new TopicExchange(ERROR_LOG_EXCHANGE);
//    }
//
//    @Bean
//    public Binding errorLogBinding() {
//        return BindingBuilder.bind(errorLogQueue()).to(errorLogExchange()).with(ERROR_LOG_ROUTING_KEY);
//    }
//
//    @Bean
//    public Queue deleteFileQueue() {
//        return new Queue(DELETE_FILE_QUEUE);
//    }
//
//    @Bean
//    public TopicExchange deleteFileExchange() {
//        return new TopicExchange(DELETE_FILE_EXCHANGE);
//    }
//
//    @Bean
//    public Binding deleteFileBinding() {
//        return BindingBuilder.bind(deleteFileQueue()).to(deleteFileExchange()).with(DELETE_FILE_ROUTING_KEY);
//    }
//
//    @Bean
//    public Queue restoreFileQueue() {
//        return new Queue(RESTORE_FILE_QUEUE);
//    }
//
//    @Bean
//    public TopicExchange restoreFileExchange() {
//        return new TopicExchange(RESTORE_FILE_EXCHANGE);
//    }
//
//    @Bean
//    public Binding restoreFileBinding() {
//        return BindingBuilder.bind(restoreFileQueue())
//                .to(restoreFileExchange())
//                .with(RESTORE_FILE_ROUTING_KEY);
//    }
//
//    @Bean
//    public Queue physicalDeleteFileQueue() {
//        return new Queue(PHYSICAL_DELETE_FILE_QUEUE);
//    }
//
//    @Bean
//    public TopicExchange physicalDeleteFileExchange() {
//        return new TopicExchange(PHYSICAL_DELETE_FILE_EXCHANGE);
//    }
//
//    @Bean
//    public Binding physicalDeleteFileBinding() {
//        return BindingBuilder.bind(physicalDeleteFileQueue())
//                .to(physicalDeleteFileExchange())
//                .with(PHYSICAL_DELETE_FILE_ROUTING_KEY);
//    }
//
//    @Bean
//    public Queue userSearchQueue() {
//        return new Queue(USER_SEARCH_QUEUE);
//    }
//
//    @Bean
//    public TopicExchange userSearchExchange() {
//        return new TopicExchange(USER_SEARCH_EXCHANGE);
//    }
//
//    @Bean
//    public Binding userSearchBinding() {
//        return BindingBuilder.bind(userSearchQueue())
//                .to(userSearchExchange())
//                .with(USER_SEARCH_ROUTING_KEY);
//    }
//
//
//}
